export interface TableOptions {
  menu: boolean
  align: Align
  menuWidth?: Number
  selection?: boolean
  dimensionColumn?: Array<DimensionColumnOptions>
  cloumns: Array<TableColumnOptions>
}

export interface DimensionColumnOptions {
  readonly prop: string
  readonly label: string
  readonly minWidth: number
  readonly align?: Align
  readonly permission?: string
  readonly hide?: boolean
  readonly slot?: boolean
  formatter?(row: any): string
}
export interface TableColumnOptions {
  readonly prop: string
  readonly label: string
  readonly minWidth: number
  readonly align?: Align
  readonly permission?: string
  readonly hide?: boolean
  readonly slot?: boolean
  readonly sortable?: string
  // 列名字段提示
  readonly tips?: string
  readonly limitLine?: number
  formatter?(row: any): string
}

export const enum Align {
  Left = 'left',
  Right = 'right',
  Center = 'center'
}
